package com.pmpd.activity.po;

import java.io.Serializable;

public class ActivityWinning implements Serializable {
    /**
     * 
     * 表字段 : a_activity_winning.id
     */
    private Long id;

    /**
     * 用户id
     * 表字段 : a_activity_winning.user_id
     */
    private Long userId;

    /**
     * 收件人名称
     * 表字段 : a_activity_winning.user_name
     */
    private String userName;

    /**
     * 收件人电话
     * 表字段 : a_activity_winning.phone
     */
    private String phone;

    /**
     * 地址
     * 表字段 : a_activity_winning.addr
     */
    private String addr;

    /**
     * 
     * 表字段 : a_activity_winning.create_time
     */
    private Long createTime;

    /**
     * 
     * 表字段 : a_activity_winning.end_time
     */
    private Long endTime;

    /**
     * 
     * 表字段 : a_activity_winning.activity_id
     */
    private Long activityId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table a_activity_winning
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table a_activity_winning
     *
     * @mbggenerated
     */
    public ActivityWinning(Long id, Long userId, String userName, String phone, String addr, Long createTime, Long endTime, Long activityId) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.phone = phone;
        this.addr = addr;
        this.createTime = createTime;
        this.endTime = endTime;
        this.activityId = activityId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table a_activity_winning
     *
     * @mbggenerated
     */
    public ActivityWinning() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.id
     *
     * @return the value of a_activity_winning.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.id
     *
     * @param id the value for a_activity_winning.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.user_id
     *
     * @return the value of a_activity_winning.user_id
     *
     * @mbggenerated
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.user_id
     *
     * @param userId the value for a_activity_winning.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.user_name
     *
     * @return the value of a_activity_winning.user_name
     *
     * @mbggenerated
     */
    public String getUserName() {
        return userName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.user_name
     *
     * @param userName the value for a_activity_winning.user_name
     *
     * @mbggenerated
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.phone
     *
     * @return the value of a_activity_winning.phone
     *
     * @mbggenerated
     */
    public String getPhone() {
        return phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.phone
     *
     * @param phone the value for a_activity_winning.phone
     *
     * @mbggenerated
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.addr
     *
     * @return the value of a_activity_winning.addr
     *
     * @mbggenerated
     */
    public String getAddr() {
        return addr;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.addr
     *
     * @param addr the value for a_activity_winning.addr
     *
     * @mbggenerated
     */
    public void setAddr(String addr) {
        this.addr = addr == null ? null : addr.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.create_time
     *
     * @return the value of a_activity_winning.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.create_time
     *
     * @param createTime the value for a_activity_winning.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.end_time
     *
     * @return the value of a_activity_winning.end_time
     *
     * @mbggenerated
     */
    public Long getEndTime() {
        return endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.end_time
     *
     * @param endTime the value for a_activity_winning.end_time
     *
     * @mbggenerated
     */
    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_winning.activity_id
     *
     * @return the value of a_activity_winning.activity_id
     *
     * @mbggenerated
     */
    public Long getActivityId() {
        return activityId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_winning.activity_id
     *
     * @param activityId the value for a_activity_winning.activity_id
     *
     * @mbggenerated
     */
    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table a_activity_winning
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", phone=").append(phone);
        sb.append(", addr=").append(addr);
        sb.append(", createTime=").append(createTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", activityId=").append(activityId);
        sb.append("]");
        return sb.toString();
    }
}